package com.css.fxfzypg.manage.disasterrisk.service;

import com.alibaba.fastjson.JSONObject;
import com.css.fxfzypg.base.attachment.entity.AttachmentInfoEntity;
import com.css.fxfzypg.manage.disasterrisk.repository.entity.DisasterRiskEntity;
import com.css.fxfzypg.manage.disasterrisk.vo.DisasterRiskParams;
import org.springframework.web.multipart.MultipartFile;

import java.awt.*;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.text.ParseException;
import java.util.List;
import java.util.Map;

public interface DisasterRiskService {

    Map<String, Object> queryDisasterData(DisasterRiskParams queryParams, int curPage, int pageSize) throws ParseException;

    boolean saveDisasterRisk(DisasterRiskEntity disasterRiskEntity) throws UnsupportedEncodingException;

    Map<String,Object> querySubmitOrNot(String submitFlag, int curPage, int pageSize, String userId);

    boolean updateIsSubmit(Map<String,String> map);

    DisasterRiskEntity queryData(String id);

    boolean modifyData(DisasterRiskEntity disasterRiskEntity);

    boolean deleteDisasterRisk(String ids);

    boolean saveAndSubmit(DisasterRiskEntity disasterRiskEntity) throws UnsupportedEncodingException;

    boolean modifyAndSubmit(DisasterRiskEntity disasterRiskEntity);

    // Map<String, Object> checkPoint(String x,String y);
}
